package cn.edu.ctbu.demo2.service;

import cn.edu.ctbu.demo2.domain.Course;
import cn.edu.ctbu.demo2.domain.Score;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public interface CourseService {

    Course Insert(Course course);
    Page<Course> findAll(Pageable pageable);
    public Page<Course> findAll(Example<Course> course, Pageable pageable);

    Course getById(Integer id);

    Course update(Course course);

    void delete(Integer id);
}
